<template>
  <div class="xtx-bread-item">
    <RouterLink v-if="to" :to="to"><slot/></RouterLink>
    <span v-else><slot/></span>
  </div>

</template>

<script setup>
defineProps({
  to: {
    type: [String, Object],
    default: '' // 默认首页
  }
})

</script>
<script>
export default {
  name: 'XtxBreadItem'
}
</script>
<style scoped lang='less'>

</style>
